package alp.starcode.nudtportal.framework.mybatis.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * user_stream_subscribe_strategy（用户流水订阅策略表）
 * </p>
 *
 * @author xwx
 * @since 2023-08-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_stream_subscribe_strategy")
@ApiModel(value = "UserStreamSubscribeStrategy对象", description = "user_stream_subscribe_strategy（用户流水订阅策略表）")
public class UserStreamSubscribeStrategy extends Model<UserStreamSubscribeStrategy> {

    private static final long serialVersionUID = 1L;

    @TableId("strategy_id")
    private String strategyId;

    @ApiModelProperty(value = "订阅时长：1一个月、2两个月、3三个月")
    @TableField("strategy_name")
    private String strategyName;

    @ApiModelProperty(value = "订阅时间")
    @TableField("strategy_value")
    private Integer strategyValue;

    @TableField("create_user_id")
    private String createUserId;

    @TableField("create_time")
    private Long createTime;

    @TableField("update_user_id")
    private String updateUserId;

    @TableField("update_time")
    private Long updateTime;


    @Override
    protected Serializable pkVal() {
        return this.strategyId;
    }

}
